package com.kly.chatter.api.application.controller.im.req;

import com.fqgj.common.api.ParamsObject;
import com.kly.sc.api.infras.enums.RestCodeEnum;
import com.kly.sc.api.infras.exception.ApplicationException;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;


/**
 * @author linqu
 */
@Data
public class GetUserStatusRequest extends ParamsObject {
    private String modelUserCode;

    @Override
    public void validate() {
        if (StringUtils.isBlank(this.modelUserCode)) {
            throw new ApplicationException(RestCodeEnum.USERID_NOT_EXIST_ERROR);
        }

    }
}
